# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=dmidecode
pkgver=3.5
pkgrel=1
pkgdesc="A utility for reporting system hardware as described by BIOS"
url="https://nongnu.org/dmidecode"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No testsuite
subpackages="$pkgname-doc"
source="https://download.savannah.gnu.org/releases/dmidecode/dmidecode-$pkgver.tar.xz"

prepare() {
	default_prepare
	sed -e '/^PROGRAMS !=/d' -i Makefile
}

build() {
	make prefix=/usr
}

package() {
	make prefix=/usr DESTDIR="$pkgdir" install
}

sha512sums="
690c9bea391f6bbfc8cd48e8db408a61d5b551a07a2823c29d03a09607fc2043cc1bea44ee9fd27fd0e7bc0b287bf9de9f22a1a66053f5b1e63d77c03d93e1ae  dmidecode-3.5.tar.xz
"
